package com.example.yilanchatserver.common;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class ConstantPropertiesUtils implements InitializingBean {

    //读取配置文件内容
    @Value("${aliyun.oss.endpoint}")
    public String endpoint;

    @Value("${aliyun.oss.accessId}")
    public String keyId;

    @Value("${aliyun.oss.accessKey}")
    public String keySecret;

    @Value("${aliyun.oss.bucket}")
    public String bucketName;

    @Value("${aliyun.oss.workdir}")
    public String workDir;

    @Value("${aliyun.oss.internal}")
    public String internal;

    @Override
    public void afterPropertiesSet() throws Exception {

    }

}
